package com.aaa.mrcai.pojo.entity;

import com.aaa.mrcai.converter.DepartConverter;
import com.aaa.mrcai.converter.DeptConverter;
import com.aaa.mrcai.converter.RoleConverter;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;

/**
 * @author meowyf
 * @version 1.0
 * @Name Z_MJ
 * @date 2021/11/25 17:06:44
 */
@Data
@Alias("emp")
public class Emp implements Serializable {

    @ExcelProperty(value="员工编号",index = 0)
    private Integer id;

    @ExcelProperty(value="员工姓名",index = 1)
    private String  ename;

    @ExcelProperty(value="入职时间",index = 2)
    private String  hiredate;

    @ExcelProperty(value="手机号",index = 3)
    private String  telephone;

    @ExcelProperty(value="员工年龄",index = 4)
    private Integer age;

    @ExcelProperty(value="所在部门",index = 5,converter = DeptConverter.class)
    private Dept dept;

    @ExcelIgnore
    private Role role;
}
